<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>bootstrap轮播图</title>
    <link rel="stylesheet" href="../css/bootstrap.css">
</head>
<style>
    main {
        margin: 1%;
        padding: 1%;
    }
</style>

<body>

    <main>
        <div id="deme-carousel" class="carousel slide" data-ride="carousel">
            <a class="carousel-control-prev" href="#deme-carousel" data-slide="prev">
                <span class="carousel-control-prev-icon" aria-hidden="true"></span>
                <span class="sr-only">Previous</span>
            </a>
            <div class="carousel-inner">
                <div class="carousel-item active">
                    <img src="../img/back.jpg" alt="" class="w-100 d-block">
                </div>
                <div class="carousel-item">
                    <img src="../img/back.jpg" alt="" class="w-100">
                </div>
                <div class="carousel-item">
                    <img src="../img/back.jpg" alt="" class="w-100">
                </div>
            </div>
            <ol class="carousel-indicators">
                <li data-target="#deme-carousel" data-slide-to="0" class="active"></li>
                <li data-target="#deme-carousel" data-slide-to="1"></li>
                <li data-target="#deme-carousel" data-slide-to="2"></li>
              </ol>
            <a class="carousel-control-next" href="#deme-carousel" data-slide="next">
                <span class="carousel-control-next-icon" aria-hidden="true"></span>
                <span class="sr-only">Next</span>
            </a>
        </div>
    </main>


    <script src="../js/jquery.min.js"></script>
    <script src="../js/bootstrap.js"></script>
</body>

</html>